package com.survey.project.research.service;

import com.survey.project.research.domain.ConsumerAnswer;

import java.util.List;

/**
 * 用户答案Service接口
 * 
 * @author survey
 * @date 2021-05-26
 */
public interface IConsumerAnswerService 
{
    /**
     * 查询用户答案
     * 
     * @param consumerAnswerId 用户答案ID
     * @return 用户答案
     */
    public ConsumerAnswer selectConsumerAnswerById(Long consumerAnswerId);

    /**
     * 查询用户答案列表
     * 
     * @param consumerAnswer 用户答案
     * @return 用户答案集合
     */
    public List<ConsumerAnswer> selectConsumerAnswerList(ConsumerAnswer consumerAnswer);

    /**
     * 新增用户答案
     * 
     * @param consumerAnswer 用户答案
     * @return 结果
     */
    public int insertConsumerAnswer(ConsumerAnswer consumerAnswer);

    /**
     * 修改用户答案
     * 
     * @param consumerAnswer 用户答案
     * @return 结果
     */
    public int updateConsumerAnswer(ConsumerAnswer consumerAnswer);

    /**
     * 批量删除用户答案
     * 
     * @param consumerAnswerIds 需要删除的用户答案ID
     * @return 结果
     */
    public int deleteConsumerAnswerByIds(Long[] consumerAnswerIds);

    /**
     * 删除用户答案信息
     * 
     * @param consumerAnswerId 用户答案ID
     * @return 结果
     */
    public int deleteConsumerAnswerById(Long consumerAnswerId);
}
